<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">  

    <h:head>
        <title>User Login</title>
    </h:head>
    <h:body>
        <h:form>
            <!-- LOCALIZATION -->
            <!-- this selectedLocale menu must always be at the top of the form -->
            <h:selectOneMenu id="selectedLocale" value="#{indexManagedBean.selectedLocale}">
                <f:selectItems value="#{enumSelectedLocale.listItems}" />

                <p:ajax update="loginTouristButton
                                loginStakeholderButton
                                loginStaffButton" 
                        listener="#{indexManagedBean.selectedLocaleValueChangeListener}" />
            </h:selectOneMenu>
            <!-- this end selectedLocale menu must always be at the top of the form -->
            <!-- END LOCALIZATION -->
            
            <h:commandButton id="loginTouristButton" action="#{pageRedirectorBean.goTouristLoginPage}" value="Tourist Login" />
            <h:commandButton id="loginStakeholderButton" action="#{pageRedirectorBean.goStakeholderLoginPage}" value="Stakeholder Page"  />
            <h:commandButton id="loginStaffButton" action="#{pageRedirectorBean.goStaffLoginPage}" value="Staff Login" />
            
        </h:form>
    </h:body>
</html>